package com.rd.student.jiaji.class4.suyan.zrrd.homework;

public class 交费 {
    public static void main(String[] args) {
        int sum=0;
        int sum1=0;

        for (double i=100000;i>=50001;i=i-0.05*i){
           sum++;
            System.out.println(sum);
            }
        for (int a=50000;a>0;a=a-100){
            sum1++;
            System.out.println(sum1);
        }
        int sum2=0;
                sum2=sum+sum1;
        System.out.println(sum2);

        }
    }

